package com.itheima.Movinformationdisplay;

public class movie
{
    //名称 价格 主演 id
    private String name;
    private String price;
    private String star;
    private String id;

    public movie() {}

     public movie(String name, String price, String star, String id) {
        this.name = name;
        this.price = price;
        this.star = star;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "movie{" +
                "name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", star='" + star + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
